package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.WorkCustomer;
import org.apache.ibatis.annotations.Param;

/**
 * 用户Mapper接口
 *
 * @author ruoyi
 * @date 2020-04-20
 */
public interface WorkCustomerMapper {
    /**
     * 查询用户
     *
     * @param id 用户ID
     * @return 用户
     */
    public WorkCustomer selectWorkCustomerById(Long id);

    /**
     * 查询用户列表
     *
     * @param workCustomer 用户
     * @return 用户集合
     */
    public List<WorkCustomer> selectWorkCustomerList(WorkCustomer workCustomer);

    /**
     * 新增用户
     *
     * @param workCustomer 用户
     * @return 结果
     */
    public int insertWorkCustomer(WorkCustomer workCustomer);

    /**
     * 修改用户
     *
     * @param workCustomer 用户
     * @return 结果
     */
    public int updateWorkCustomer(WorkCustomer workCustomer);

    /**
     * 删除用户
     *
     * @param id 用户ID
     * @return 结果
     */
    public int deleteWorkCustomerById(Long id);

    /**
     * 批量删除用户
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWorkCustomerByIds(String[] ids);

    String selectWorkCustomerByName(@Param("name") String name);

    int updateWorkCustomerByName(WorkCustomer workCustomer);
}
